<html>
<head>
<title>任务大厅</title>
{% include "systy.html" %}
</head>
<body>
{% ifnotequal username None%}
{% include "head3.html" %}
<div class="container mytable">
<div class="location_div">位置：任务系统 >> 任务大厅 </div>
<table>
    <thead>
        <tr>
            <td>工单</td>
            <td>任务名称</td>
            <td>发起人</td>
            <td>接收人</td>
            <td>紧急</td>
            <td>任务状态</td>
            <td>任务发布时间</td>
            <td>任务完成时间</td>
            <td>操作</td>
        </tr>
    </thead>
{% for i in taskinfo %}
    <tr>
        <td class="taskinfo_td">{{i.id}}</td>
        <td><a href="mytask/{{i.id}}.html">{{ i.task_name|truncatechars:40 }}</a></td>
        <td class="taskinfo_td">{{i.from_name}}</td>
        <td class="taskinfo_td">{{i.to_name}}</td>
        <td class="taskinfo_td">
            {% ifequal i.urgent_status "1" %}
                <label class="label label-success">不急</label>
            {% endifequal%}
            {% ifequal i.urgent_status "2" %}
                <label class="label label-warning">紧急</label>
            {% endifequal%}
            {% ifequal i.urgent_status "3" %}
                <label class="label label-danger">很急</label>
            {% endifequal%}
        </td>
        <td class="taskinfo_td">
            {% ifequal i.task_status "0" %}
                <label class="label label-danger">等待处理</label>
            {% endifequal%}
            {% ifequal i.task_status "1" %}
                <label class="label label-success">正在处理</label>
            {% endifequal%}
            {% ifequal i.task_status "2" %}
                <label class="label label-default">处理完成</label>
            {% endifequal%}
        </td>


        </td>
        <td class="taskinfo_td">{{i.now_time|date:"Y-m-d H:i:s" }}</td>
        <td class="taskinfo_td">{{i.completion_time|date:"Y-m-d H:i:s" }}</td>
        
        <td class="host_buttom taskinfo_td"><a class="btn btn-danger btn-xs" {% ifnotequal userpermissions "运维经理" %} disabled="disabled" {% endifnotequal %} href="/taskdel/{{i.id}}.html" onClick="delcfm()">删除</a></td>
        
    </tr>
{% endfor %}
</table>
</div>
{{USERA}}
{% else %}
你无权访问，请<a href="/login.html">登陆!</a>
{% endifnotequal%}

</body>
</html>
